<template>
  <Form ref="form">
    输入框:<input type="text" ref="de" v-model="form.username" />
    <div>密码:<input type="password" ref="pass" v-model="form.password" /></div>
  </Form>
</template>
<script>
export default {
  data() {
    return {
      form: {
        username: '',
        password: '',
      },
    }
  },
  methods: {
    sonSubmit() {
      // console.log(this.form);
      // this.$refs.form.reset()
      // this.form={
      //     username:'',
      //     password:''
      // }
      console.log(this.form.username, this.form.password)
      this.form.username = ''
      this.form.password = ''
    },
  },
}
</script>

<style scoped></style>
